# Maintainer: Konstantin Gizdov <arch at kge dot pw>
# Contributor: Axel Gembe <derago@gmail.com>
# Contributor: Oleksandr Natalenko <oleksandr@natalenko.name>
# Contributor: Antoine Lubineau <antoine@lubignon.info>

pkgname=dnsperf
pkgver=2.11.2
pkgrel=1
pkgdesc="Tools that measure performance of authoritative Domain Name services"
arch=('loong64' 'x86_64')
url="https://www.dns-oarc.net/tools/dnsperf"
license=('Apache')
depends=('ldns' 'libck' 'libnghttp2')
source=("https://www.dns-oarc.net/files/${pkgname}/${pkgname}-${pkgver}.tar.gz")
b2sums=('bbfab92b59b14b8622d80dd92d616f837df4c829cb97de3673b178d2e4583d5660d2d78d91c9bbb28d42038e92f7150f06bbe28521c69ec3140338ca87f48fc0')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
